<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="Info.RoomInfo"%>
<%@page import="java.util.List"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="java.util.Date"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加房间</title>
<link rel="stylesheet" href="css/pintuer.css">
<link rel="stylesheet" href="css/admin.css">
<script src="js/jquery.js"></script>
<script src="js/pintuer.js"></script>
</head>
<body>
<div class="loginleft fl">
		<div class="login_title">
			<h2>
			  <p align="center">添加房间</p>
			</h2><hr>
			<p align="center"></p>
		</div>
		<form name="form1" method="post" action="InsertRoomServlet">
			<%
				String msg1 = (String) request.getAttribute("error1");
				String msg2 = (String) request.getAttribute("error2");
				String msg3 = (String) request.getAttribute("error3");
				String msg4 = (String) request.getAttribute("error4");
				String msg5 = (String) request.getAttribute("error5");
				String msg6 = (String) request.getAttribute("error6");
				String msg7 = (String) request.getAttribute("error7");
				String msg8 = (String) request.getAttribute("error8");
			%>
	    <div class="biaodani">
			<div class="inputi">
				<p align="center">
					<label>房间编号：&nbsp;&nbsp;</label>
				    <input type="text" name="roomId" placeholder="101" value="">
				    <span style="color: red;"><%=msg1 == null ? "" : msg1%></span>
				    <span style="color: red;"><%=msg8 == null ? "" : msg8%></span>
			</div>
			<div class="inputi">
				<p align="center">
					<label>房间面积：&nbsp;&nbsp;</label> 
					<input type="text" name="roomArea" placeholder="25" value="">
					<span style="color: red;"><%=msg2 == null ? "" : msg2%></span>
			</div>
			<div class="inputi">
				<p align="center">
					<label>&nbsp;&nbsp;床&nbsp;&nbsp;&nbsp;数：&nbsp;&nbsp;&nbsp;&nbsp;</label> 
					<input type="text" name="bedNum" placeholder="1（小/大）" value="">
					<span style="color: red;"><%=msg3 == null ? "" : msg3%></span>
			</div>
			<div class="inputi">
				<p align="center">
					<label>房间单价：&nbsp;&nbsp;</label> 
					<input type="text" name="roomPrice" placeholder="78" value="">
					<span style="color: red;"><%=msg4 == null ? "" : msg4%></span>
			</div>
			<div class="inputi">
				<p align="center">
					<label>房间类别：&nbsp;&nbsp;</label> 
					<input type="text" name="roomType" placeholder="单人间/双人间/三人间..." value="">
					<span style="color: red;"><%=msg5 == null ? "" : msg5%></span>
			</div>
			<div class="inputi">
				<p align="center">
					<label>房间级别：&nbsp;&nbsp;</label> 
					<input type="text" name="roomLevel" placeholder="单人间/双人间/三人间..." value="">
					<span style="color: red;"><%=msg6 == null ? "" : msg6%></span>
			</div>
			<div class="inputi">
				<p align="center">
					<label>&nbsp;&nbsp;&nbsp;卫生间：&nbsp;&nbsp;&nbsp;</label> 
					<input type="text" name="toilet" value="有">
			</div>
			<div class="inputi">
				<p align="center">
					<label>&nbsp;&nbsp;空&nbsp;&nbsp;&nbsp;调：&nbsp;&nbsp;&nbsp;&nbsp;</label> 
					<input type="text" name="airConditioner" value="有">
			</div>
			<div class="inputi">
				<p align="center">
					<label>&nbsp;&nbsp;电&nbsp;&nbsp;&nbsp;视：&nbsp;&nbsp;&nbsp;&nbsp;</label> 
					<input type="text" name="TV" value="有">
			</div>
			<div class="inputi">
				<p align="center">
					<label>&nbsp;&nbsp;电&nbsp;&nbsp;&nbsp;话：&nbsp;&nbsp;&nbsp;&nbsp;</label> 
					<input type="text" name="telephone" value="有">
			</div>
			<div class="inputi">
				<p align="center">
					<label>房间状态：&nbsp;&nbsp;</label> 
					<input type="text" name="roomStatus" placeholder="空闲" value="">
					 <span style="color: red;"><%=msg7 == null ? "" : msg7%></span>
			</div>
			<div class="inputi">
				<p align="center">
					<label>&nbsp;&nbsp;备&nbsp;&nbsp;&nbsp;注：&nbsp;&nbsp;&nbsp;&nbsp;</label> 
					<input type="text" name="comments" placeholder="备注"value="">
			</div>
		<div class="login_btn">
			<p align="center">
				&nbsp;&nbsp;&nbsp;&nbsp; 
				<input name="确定" type="submit"class="input-8" value="确定">
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
				<input name="重置" type="reset" class="submitbutton" id="submit_button" value="重置">
		</div>
	</div>
	</form>
	</div>
</body>
</html>